package com.spica.spicaschool.ui.theme

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.spica.spicaschool.databinding.ActivityThemeBinding

/**
 * 主题设置Activity
 */
class ThemeActivity : AppCompatActivity() {

    private lateinit var viewBinding: ActivityThemeBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewBinding = ActivityThemeBinding.inflate(layoutInflater)
        setContentView(viewBinding.root)
        setTitle()
        initView()
    }

    // 载入View
    private fun initView() {
    }

    // 设置标题栏
    private fun setTitle() {
        setSupportActionBar(viewBinding.toolbar)
        title = "主题颜色"
        supportActionBar?.apply {
            setHomeButtonEnabled(true)
            setDisplayHomeAsUpEnabled(true)
            setDisplayShowTitleEnabled(false)
        }
    }
}
